package com.czxy.demo02;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)

@ContextConfiguration(locations = "classpath:SpringConfig02.xml")

public class Test02 {

    @Resource
    private UserService userService;

    @Test
    public  void findAll(){
        userService.findAll();
    }



}
